package com.catfive.jet_work.feature.dashboard

import androidx.compose.animation.slideIn
import androidx.compose.animation.slideOut
import androidx.compose.ui.unit.IntOffset
import androidx.navigation.NavGraphBuilder
import androidx.navigation.compose.composable

const val DASHBOARD_ROUTE = "dashboard_route"


fun NavGraphBuilder.dashboardScreen(onOpenDrawer: () -> Unit) {
    composable(
        DASHBOARD_ROUTE,
        // 从右侧滑入
//        enterTransition = { slideIn(initialOffset = { size -> IntOffset(-size.width, 0) }) },

//        exitTransition = { slideOut(targetOffset = { size -> IntOffset(size.width, 0) }) },
    ) {
        DashboardRoute(onOpenDrawer = onOpenDrawer)
    }
}